import { defineConfig } from 'umi';
import routes from './routes';
import proxy from './proxy';

// import i18n from '../src/i18n/config';

export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  proxy,

  antd: {},

  locale: {
    default: 'zh-CN',
    antd: true,
    title: false,
    baseNavigator: true,
    baseSeparator: '-',
  },
  routes: routes,
  fastRefresh: {}, //快速刷新
  devServer: {
    port: 8081, //配置启动端口
  },
  title: '环球会客户服务平台', //配置浏览器标题
  dynamicImport: {
    loading: '@/components/Loading/index',
  },
});
